// pages/invite/invite.js

Page({

  /**
   * 页面的初始数据
   */
  data: {
    getFriend: 0,
    coupon: 0
  },
  onReady: function () {
    this.comMethods = this.selectComponent("#comMethods");
  },
  rule:function(){
    wx.navigateTo({
      url: './rule/rule',
      success: function () {
        console.log('跳转到rule页面成功');// success              
      },
      fail: function () {
        console.log('跳转到news页面失败');
      }
    })
  },
  addFriend(){
    this.comMethods.show();
  }
})